package com.service.impl;


import com.dao.PostingVisitPrivilegeDao;
import com.entity.PostingVisitPrivilege;
import com.service.PostingVisitPrivilegeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 权限业务实现
 *
 * @author lbb
 * @version 1.0
 * @date 2020.3.4
 */
@Service
public class PostingVisitPrivilegeServiceImpl implements PostingVisitPrivilegeService {
	
	@Autowired
	private PostingVisitPrivilegeDao postingVisitPrivilegeDao;
	//添加
	@Override
	public Boolean addPostingVisitPrivilege(Integer postingId, Integer... userIds) {
		return postingVisitPrivilegeDao.addPostingVisitPrivilege(postingId, userIds);
	}
	//删除
	@Override
	public Boolean delPostingVisitPrivilege(PostingVisitPrivilege postingVisitPrivilege) {
		return postingVisitPrivilegeDao.delPostingVisitPrivilege(postingVisitPrivilege);
	}
}
